import { createRouter, createWebHashHistory } from 'vue-router'
import pcRoutes from './modules/pc-router'
import mobileRoutes from './modules/mobile-router'
import { isMobileTerminal } from '@/utils/flexible'

const routes = isMobileTerminal.value ? mobileRoutes : pcRoutes

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
